package com.jing.weibo.mapper.user;

import java.util.List;

import com.jing.weibo.pojo.user.UserInfo;
import com.jing.weibo.pojo.user.UserMp;

/**
 * 可互粉的用户的Mapper
 * @author jing.yue
 * @version 2012/11/13 1.0.0
 */
public interface UserMpMapper {

	/**
	 * 保存可互粉用户信息
	 * @param userMp
	 * @throws Exception
	 */
	public abstract void saveUserMp(UserMp userMp) throws Exception;

	/**
	 * 根据用户名查询对象
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public abstract UserMp findByUsername(String username) throws Exception;

	/**
	 * 根据用户名修改信息
	 * @param userMp
	 * @throws Exception
	 */
	public abstract void updateUserMp(UserMp userMp) throws Exception;

	/**
	 * 根据用户名删除可互粉用户信息
	 * @param username
	 * @throws Exception
	 */
	public abstract void deleteByUsername(String username) throws Exception;

	/**
	 * 根据泡吧分区获取下面的所有用户信息
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public abstract List<UserMp> findByJoinMpPbTypeUserMp(UserInfo userInfo) throws Exception;

	/**
	 * 查看没有分区的用户
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public abstract List<UserMp> findByNotPbTypeUserMp(UserInfo userInfo) throws Exception;
}